home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1599 / 1591 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.8 KB

  1. From: knarf@nasim.cube.net (Frank Bartels)
  2. Subject: Re: supplementary groups question...
  3. Date: Thu, 23 Jun 1994 20:09:50 +0200 (MET DST)
  4. In-Reply-To: <9406231421.AA13595@amsel.techfak.uni-bielefeld.de> from "itschere@TechFak.Uni-Bielefeld.DE" at Jun 23, 94 04:21:08 pm
  5. Mime-Version: 1.0
  6.  
  7. itschere@TechFak.Uni-Bielefeld.DE wrote:
  8. > Bart Schuller wrote:
  9. > > Yes: please don't change this behaviour, it's supposed to work this way.
  10. > > It even has some advantages: you now have a very simple way to restrict
  11. > > access to some files for a specific group; make the permissions rwx---r-x
  12. > > and everyone in the same group as the file wil be denied access to it.
  13. >  Sh*t, looks like SUN-OS also behaves that way... :-(
  14.  
  15. Yes, it does. ;)
  16.  
  17. >  Which kind of devil has ridden them to define *that* as official behaviour?
  18.  
  19. That was the behaviour I expected as read in a book about UNIX security.
  20. The permissions are tested from left to right, if the user matches the
  21. uid or gid, those permissions are used.
  22.  
  23. [SunOS 4.1.1]
  24. /home/knarf> id
  25. uid=100(knarf) gid=30(admin) groups=30(admin),0(wheel),8(uucp),100(user),\
  26.     101(xlib),102(connbeta),103(gmnibeta)
  27. /home/knarf> ll testfile
  28. -rw----rw-  1 tom      xlib            0 Jun 23 20:00 testfile*
  29. /home/knarf> more testfile
  30. testfile: Permission denied
  31.  
  32. /home/knarf> ll testfile
  33. ----rw-rw-  1 knarf    xlib            0 Jun 23 20:00 testfile*
  34. /home/knarf> more testfile
  35. testfile: Permission denied
  36.  
  37. >  Now is it correct that this behaviour must be applied to any of the supp.
  38. > gids, and thus maybe deny access if any of them matches, but has different
  39. > permissions?
  40.  
  41. Seems to be correct.
  42.  
  43. Bye,
  44. Knarf
  45. -- 
  46.     Frank Bartels    |          UUCP: + 49 89 5469593          | MiNT is
  47. knarf@nasim.cube.net | Login: nuucp Index: /pub/ls-lR.nasim.gz | Now TOS!
  48.